package net.k3rnel.abugadro;

import android.net.Uri;
import android.provider.BaseColumns;

public class Project {

	public Project() {
	}

	public static final class Projects implements BaseColumns {
		private Projects() {
		}

		public static final Uri CONTENT_URI = Uri.parse("content://"+ AbugadroContentProvider.AUTHORITY + "/projects");
		public static final Uri OLD_CONTENT_URI = Uri.parse("content://"+ ProjectsContentProvider.AUTHORITY + "/projects");

		public static final String CONTENT_TYPE_DIR = "vnd.android.cursor.dir/vnd.abugadro.projects";
		public static final String CONTENT_TYPE_ITEM = "vnd.android.cursor.item/vnd.abugadro.projects";

		public static final String _ID = "_id";
		public static final String NAME = "name";
		public static final String TYPE = "type";
		public static final String LASTSYNC = "lastsync";
		
		public static final String DEFAULT_SORT = NAME + " ASC";
		
		/** Build {@link Uri} for requested {@link #_ID}. */
        public static Uri buildUri(String projId) {
            return CONTENT_URI.buildUpon().appendPath(projId).build();
        }
	}

}